package com.wenx.think;

public class Apple extends Fruit {

    private int num = 1;

    void eat() {
        System.out.println("洗干净就可以吃");
    }

    Apple() {
        eat();
    }

    Apple(int num) {
        this.num = num;
        System.out.println("num = " + num);
        eat();
    }

}
